package com.halflife.parameter;

import com.halflife.framework.domain.BaseDomain;
import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.SimpleBuilder;
import com.halflife.framework.generator.build.UpdataBuilder;
import org.junit.jupiter.api.Test;

@QueryAnn(title = "SearchKeyWord",mainTitle = "SearchKeyWord",table = "t_parameter_searchKeyWord")
public class SearchKeyWord extends BaseDomain {
    @Test
    public void generate0()throws Exception{
        SimpleBuilder builder = new SimpleBuilder();
        builder.buildMapper(this.getClass());
        builder.buildRepository(this.getClass());
        builder.buildCreateTable(this.getClass());
//        builder.buildAll(this.getClass());
    }
    @Test
    public void generate()throws Exception{
        UpdataBuilder builder = new UpdataBuilder();
//        builder.buildMapper(this.getClass());
        builder.buildAlterTable(this.getClass());
    }
    @QueryAnn(value = "keyWords")
    private String keyWords;
    @QueryAnn(value = "searchWords")
    private String searchWords;

    public String getKeyWords() {
        return keyWords;
    }

    public void setKeyWords(String keyWords) {
        this.keyWords = keyWords;
    }

    public String getSearchWords() {
        return searchWords;
    }

    public void setSearchWords(String searchWords) {
        this.searchWords = searchWords;
    }
}
